package tech.aistar.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tech.aistar.entity.Choose;

import java.util.List;

public interface ChooseMapper {

    @Select("select * from choose")
    List<Choose> selectAll();

    @Insert("insert into choose values(tenantId,block)")
    void insert(Choose choose);
    @Update("update choose set tenant_id=#{tenantId},block=${block} where id=#{Id}")
    void  updateByPrimaryKey(Choose choose);

    @Delete("delete from choose where id=#{Id}")
    void deleteByPrimaryKey(Integer id);

}
